
<!-- 引入基类模板 -->
<extend name="Public:base" />

<!-- 主体部分 -->
<block name='content'>

    <!-- 功能操作区一 -->
    <form class="layui-form toolbar">
        <div class="layui-form-item">
                    
            <!-- 测试名称 -->
            <div class="layui-inline">
                <label class="layui-form-label w-auto">测试名称：</label>
                <div class="layui-input-inline">
                    <input type="text" name="name" placeholder="请输入测试名称" autocomplete="off" class="layui-input">
                </div>
            </div>
                                
            <!-- 性别 -->
            <div class="layui-inline">
                <label class="layui-form-label w-auto">性别：</label>
                <div class="layui-input-inline">
                    {:W('common/select',array('gender|0|性别|name|id',"1=男,2=女,3=保密",0))}
                </div>
            </div>
                                
            <!-- 状态 -->
            <div class="layui-inline">
                <label class="layui-form-label w-auto">状态：</label>
                <div class="layui-input-inline">
                    {:W('common/select',array('status|0|状态|name|id',"1=正常,2=停用",0))}
                </div>
            </div>
                    
            <div class="layui-inline">
                <div class="layui-input-inline" style="width: auto;">
                    {:W('func/query',array(查询))}
                    {:W('func/add',array(添加演示案例二))}
                    {:W('func/dall',array(批量删除))}
                </div>
            </div>
        </div>
    </form>

    <!-- TABLE渲染区 -->
    <table class="layui-hide" id="tableList" lay-filter="tableList"></table>

    <!-- 操作功能区二 -->
    <script type="text/html" id="toolBar">
        {:W('func/edit',array(编辑))}
        {:W('func/delete',array(删除))}
    </script>

    <!-- 状态 -->
    <script type="text/html" id="statusTpl">
        <input type="checkbox" name="status" value="{{ d.id }}" lay-skin="switch" lay-text="正常|停用" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }} >
    </script>

</block>